//
//  NSString+RegexCategory.h
//  GSCalendar
//
//  Created by guoshikeji_a on 2018/9/5.
//  Copyright © 2018年 tanyin. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger,GSCCommonLoginAccountType) {
    GSCCommonLoginAccountTypeUnknown = 0,
    GSCCommonLoginAccountTypePhone = 1,
    GSCCommonLoginAccountTypeEmail = 2,
};

typedef NS_ENUM(NSInteger,GSCCommonLoginPasswordErrorType) {
    GSCCommonLoginPasswordErrorTypeNone = 0,//正确
    GSCCommonLoginPasswordErrorTypeLength,
    GSCCommonLoginPasswordErrorTypeIllegalCharacters, //含有非法字符
    GSCCommonLoginPasswordErrorTypePureDigital,//纯数字
    GSCCommonLoginPasswordErrorTypePureLetter,//纯字母
    GSCCommonLoginPasswordErrorTypePurePunctuation,//纯标点符号
};

@interface NSString (RegexCategory)


+ (GSCCommonLoginAccountType)gscLoginAccountTypeWithString:(NSString *)string;


+ (BOOL)gsLoginPasswordRegex:(NSString *)password;


@end
